<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="考核主键" prop="inspectionId">
        <el-input
          v-model="queryParams.inspectionId"
          placeholder="请输入考核主键"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业主键" prop="majorId">
        <el-input
          v-model="queryParams.majorId"
          placeholder="请输入专业主键"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业简称" prop="majorName">
        <el-input
          v-model="queryParams.majorName"
          placeholder="请输入专业简称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业全称" prop="majorFullName">
        <el-input
          v-model="queryParams.majorFullName"
          placeholder="请输入专业全称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业父Id" prop="parentId">
        <el-input
          v-model="queryParams.parentId"
          placeholder="请输入专业父Id"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标准得分" prop="majorStandardScore">
        <el-input
          v-model="queryParams.majorStandardScore"
          placeholder="请输入标准得分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="权重" prop="weight">
        <el-input
          v-model="queryParams.weight"
          placeholder="请输入权重"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否含有子专业, 默认0(0:否；1:是)；" prop="child">
        <el-input
          v-model="queryParams.child"
          placeholder="请输入是否含有子专业, 默认0(0:否；1:是)；"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="状态, 默认1(1:启用；0:停用)；" prop="enable">
        <el-input
          v-model="queryParams.enable"
          placeholder="请输入状态, 默认1(1:启用；0:停用)；"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="排序" prop="sorting">
        <el-input
          v-model="queryParams.sorting"
          placeholder="请输入排序"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="规则Key" prop="ruleKey">
        <el-input
          v-model="queryParams.ruleKey"
          placeholder="请输入规则Key"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="规则" prop="rule">
        <el-input
          v-model="queryParams.rule"
          placeholder="请输入规则"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业标准得分" prop="majorScore">
        <el-input
          v-model="queryParams.majorScore"
          placeholder="请输入专业标准得分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业加权得分" prop="majorWeightScore">
        <el-input
          v-model="queryParams.majorWeightScore"
          placeholder="请输入专业加权得分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业负责人" prop="majorLeader">
        <el-input
          v-model="queryParams.majorLeader"
          placeholder="请输入专业负责人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业负责人电话" prop="majorLeaderPhone">
        <el-input
          v-model="queryParams.majorLeaderPhone"
          placeholder="请输入专业负责人电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="重大隐患(0,无，1 有，内容来之专业隐患的评审" prop="accidentJudgeState">
        <el-input
          v-model="queryParams.accidentJudgeState"
          placeholder="请输入重大隐患(0,无，1 有，内容来之专业隐患的评审"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="专业考核状态" prop="majorState">
        <el-input
          v-model="queryParams.majorState"
          placeholder="请输入专业考核状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建人" prop="createByName">
        <el-input
          v-model="queryParams.createByName"
          placeholder="请输入创建人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建时间" prop="createAt">
        <el-date-picker clearable
          v-model="queryParams.createAt"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择创建时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="更新人" prop="updateByName">
        <el-input
          v-model="queryParams.updateByName"
          placeholder="请输入更新人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="更新时间" prop="updateAt">
        <el-date-picker clearable
          v-model="queryParams.updateAt"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择更新时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="版本" prop="version">
        <el-input
          v-model="queryParams.version"
          placeholder="请输入版本"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="扩展字段1" prop="extra1">
        <el-input
          v-model="queryParams.extra1"
          placeholder="请输入扩展字段1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="扩展字段3 (检查得分:合计得分;)" prop="extra2">
        <el-input
          v-model="queryParams.extra2"
          placeholder="请输入扩展字段3 (检查得分:合计得分;)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="扩展字段3 (检查得分:合计得分)" prop="extra3">
        <el-input
          v-model="queryParams.extra3"
          placeholder="请输入扩展字段3 (检查得分:合计得分)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检查单位" prop="missingItem">
        <el-input
          v-model="queryParams.missingItem"
          placeholder="请输入检查单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检查人员" prop="majorInspectors">
        <el-input
          v-model="queryParams.majorInspectors"
          placeholder="请输入检查人员"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="陪检人员" prop="majorAccompanyingPersons">
        <el-input
          v-model="queryParams.majorAccompanyingPersons"
          placeholder="请输入陪检人员"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检查时间" prop="majorInspectionDate">
        <el-input
          v-model="queryParams.majorInspectionDate"
          placeholder="请输入检查时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检查地点" prop="majorInspectionLocation">
        <el-input
          v-model="queryParams.majorInspectionLocation"
          placeholder="请输入检查地点"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['workSafetyStandardization:InspectionMajorresult:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['workSafetyStandardization:InspectionMajorresult:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['workSafetyStandardization:InspectionMajorresult:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['workSafetyStandardization:InspectionMajorresult:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="InspectionMajorresultList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="专业考核结果Id" align="center" prop="majorResultId" />
      <el-table-column label="考核主键" align="center" prop="inspectionId" />
      <el-table-column label="考核类型" align="center" prop="inspectionType" />
      <el-table-column label="专业主键" align="center" prop="majorId" />
      <el-table-column label="专业简称" align="center" prop="majorName" />
      <el-table-column label="专业全称" align="center" prop="majorFullName" />
      <el-table-column label="专业父Id" align="center" prop="parentId" />
      <el-table-column label="标准得分" align="center" prop="majorStandardScore" />
      <el-table-column label="权重" align="center" prop="weight" />
      <el-table-column label="是否含有子专业, 默认0(0:否；1:是)；" align="center" prop="child" />
      <el-table-column label="状态, 默认1(1:启用；0:停用)；" align="center" prop="enable" />
      <el-table-column label="排序" align="center" prop="sorting" />
      <el-table-column label="规则Key" align="center" prop="ruleKey" />
      <el-table-column label="规则" align="center" prop="rule" />
      <el-table-column label="专业标准得分" align="center" prop="majorScore" />
      <el-table-column label="专业加权得分" align="center" prop="majorWeightScore" />
      <el-table-column label="专业负责人" align="center" prop="majorLeader" />
      <el-table-column label="专业负责人电话" align="center" prop="majorLeaderPhone" />
      <el-table-column label="重大隐患(0,无，1 有，内容来之专业隐患的评审" align="center" prop="accidentJudgeState" />
      <el-table-column label="重大隐患内容" align="center" prop="accidentJudgeContent" />
      <el-table-column label="重大隐患Ids" align="center" prop="accidentJudgeIds" />
      <el-table-column label="专业考核状态" align="center" prop="majorState" />
      <el-table-column label="创建人" align="center" prop="createByName" />
      <el-table-column label="创建时间" align="center" prop="createAt" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createAt, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="更新人" align="center" prop="updateByName" />
      <el-table-column label="更新时间" align="center" prop="updateAt" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.updateAt, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="备注说明" align="center" prop="remark" />
      <el-table-column label="版本" align="center" prop="version" />
      <el-table-column label="状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；" align="center" prop="status" />
      <el-table-column label="扩展字段1" align="center" prop="extra1" />
      <el-table-column label="扩展字段3 (检查得分:合计得分;)" align="center" prop="extra2" />
      <el-table-column label="扩展字段3 (检查得分:合计得分)" align="center" prop="extra3" />
      <el-table-column label="检查单位" align="center" prop="missingItem" />
      <el-table-column label="检查人员" align="center" prop="majorInspectors" />
      <el-table-column label="陪检人员" align="center" prop="majorAccompanyingPersons" />
      <el-table-column label="检查时间" align="center" prop="majorInspectionDate" />
      <el-table-column label="检查地点" align="center" prop="majorInspectionLocation" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['workSafetyStandardization:InspectionMajorresult:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['workSafetyStandardization:InspectionMajorresult:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改标准化考核专业评分对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="考核主键" prop="inspectionId">
          <el-input v-model="form.inspectionId" placeholder="请输入考核主键" />
        </el-form-item>
        <el-form-item label="专业主键" prop="majorId">
          <el-input v-model="form.majorId" placeholder="请输入专业主键" />
        </el-form-item>
        <el-form-item label="专业简称" prop="majorName">
          <el-input v-model="form.majorName" placeholder="请输入专业简称" />
        </el-form-item>
        <el-form-item label="专业全称" prop="majorFullName">
          <el-input v-model="form.majorFullName" placeholder="请输入专业全称" />
        </el-form-item>
        <el-form-item label="专业父Id" prop="parentId">
          <el-input v-model="form.parentId" placeholder="请输入专业父Id" />
        </el-form-item>
        <el-form-item label="标准得分" prop="majorStandardScore">
          <el-input v-model="form.majorStandardScore" placeholder="请输入标准得分" />
        </el-form-item>
        <el-form-item label="权重" prop="weight">
          <el-input v-model="form.weight" placeholder="请输入权重" />
        </el-form-item>
        <el-form-item label="是否含有子专业, 默认0(0:否；1:是)；" prop="child">
          <el-input v-model="form.child" placeholder="请输入是否含有子专业, 默认0(0:否；1:是)；" />
        </el-form-item>
        <el-form-item label="状态, 默认1(1:启用；0:停用)；" prop="enable">
          <el-input v-model="form.enable" placeholder="请输入状态, 默认1(1:启用；0:停用)；" />
        </el-form-item>
        <el-form-item label="排序" prop="sorting">
          <el-input v-model="form.sorting" placeholder="请输入排序" />
        </el-form-item>
        <el-form-item label="规则Key" prop="ruleKey">
          <el-input v-model="form.ruleKey" placeholder="请输入规则Key" />
        </el-form-item>
        <el-form-item label="规则" prop="rule">
          <el-input v-model="form.rule" placeholder="请输入规则" />
        </el-form-item>
        <el-form-item label="专业标准得分" prop="majorScore">
          <el-input v-model="form.majorScore" placeholder="请输入专业标准得分" />
        </el-form-item>
        <el-form-item label="专业加权得分" prop="majorWeightScore">
          <el-input v-model="form.majorWeightScore" placeholder="请输入专业加权得分" />
        </el-form-item>
        <el-form-item label="专业负责人" prop="majorLeader">
          <el-input v-model="form.majorLeader" placeholder="请输入专业负责人" />
        </el-form-item>
        <el-form-item label="专业负责人电话" prop="majorLeaderPhone">
          <el-input v-model="form.majorLeaderPhone" placeholder="请输入专业负责人电话" />
        </el-form-item>
        <el-form-item label="重大隐患(0,无，1 有，内容来之专业隐患的评审" prop="accidentJudgeState">
          <el-input v-model="form.accidentJudgeState" placeholder="请输入重大隐患(0,无，1 有，内容来之专业隐患的评审" />
        </el-form-item>
        <el-form-item label="重大隐患内容">
          <editor v-model="form.accidentJudgeContent" :min-height="192"/>
        </el-form-item>
        <el-form-item label="重大隐患Ids" prop="accidentJudgeIds">
          <el-input v-model="form.accidentJudgeIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="专业考核状态" prop="majorState">
          <el-input v-model="form.majorState" placeholder="请输入专业考核状态" />
        </el-form-item>
        <el-form-item label="创建人" prop="createByName">
          <el-input v-model="form.createByName" placeholder="请输入创建人" />
        </el-form-item>
        <el-form-item label="创建时间" prop="createAt">
          <el-date-picker clearable
            v-model="form.createAt"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择创建时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="更新人" prop="updateByName">
          <el-input v-model="form.updateByName" placeholder="请输入更新人" />
        </el-form-item>
        <el-form-item label="更新时间" prop="updateAt">
          <el-date-picker clearable
            v-model="form.updateAt"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择更新时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="备注说明" prop="remark">
          <el-input v-model="form.remark" placeholder="请输入备注说明" />
        </el-form-item>
        <el-form-item label="版本" prop="version">
          <el-input v-model="form.version" placeholder="请输入版本" />
        </el-form-item>
        <el-form-item label="扩展字段1" prop="extra1">
          <el-input v-model="form.extra1" placeholder="请输入扩展字段1" />
        </el-form-item>
        <el-form-item label="扩展字段3 (检查得分:合计得分;)" prop="extra2">
          <el-input v-model="form.extra2" placeholder="请输入扩展字段3 (检查得分:合计得分;)" />
        </el-form-item>
        <el-form-item label="扩展字段3 (检查得分:合计得分)" prop="extra3">
          <el-input v-model="form.extra3" placeholder="请输入扩展字段3 (检查得分:合计得分)" />
        </el-form-item>
        <el-form-item label="检查单位" prop="missingItem">
          <el-input v-model="form.missingItem" placeholder="请输入检查单位" />
        </el-form-item>
        <el-form-item label="检查人员" prop="majorInspectors">
          <el-input v-model="form.majorInspectors" placeholder="请输入检查人员" />
        </el-form-item>
        <el-form-item label="陪检人员" prop="majorAccompanyingPersons">
          <el-input v-model="form.majorAccompanyingPersons" placeholder="请输入陪检人员" />
        </el-form-item>
        <el-form-item label="检查时间" prop="majorInspectionDate">
          <el-input v-model="form.majorInspectionDate" placeholder="请输入检查时间" />
        </el-form-item>
        <el-form-item label="检查地点" prop="majorInspectionLocation">
          <el-input v-model="form.majorInspectionLocation" placeholder="请输入检查地点" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listInspectionMajorresult, getInspectionMajorresult, delInspectionMajorresult, addInspectionMajorresult, updateInspectionMajorresult } from "@/api/workSafetyStandardization/InspectionMajorresult";

export default {
  name: "InspectionMajorresult",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 标准化考核专业评分表格数据
      InspectionMajorresultList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        inspectionId: null,
        inspectionType: null,
        majorId: null,
        majorName: null,
        majorFullName: null,
        parentId: null,
        majorStandardScore: null,
        weight: null,
        child: null,
        enable: null,
        sorting: null,
        ruleKey: null,
        rule: null,
        majorScore: null,
        majorWeightScore: null,
        majorLeader: null,
        majorLeaderPhone: null,
        accidentJudgeState: null,
        accidentJudgeContent: null,
        accidentJudgeIds: null,
        majorState: null,
        createByName: null,
        createAt: null,
        updateByName: null,
        updateAt: null,
        version: null,
        status: null,
        extra1: null,
        extra2: null,
        extra3: null,
        missingItem: null,
        majorInspectors: null,
        majorAccompanyingPersons: null,
        majorInspectionDate: null,
        majorInspectionLocation: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        majorId: [
          { required: true, message: "专业主键不能为空", trigger: "blur" }
        ],
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询标准化考核专业评分列表 */
    getList() {
      this.loading = true;
      listInspectionMajorresult(this.queryParams).then(response => {
        this.InspectionMajorresultList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        majorResultId: null,
        inspectionId: null,
        inspectionType: null,
        majorId: null,
        majorName: null,
        majorFullName: null,
        parentId: null,
        majorStandardScore: null,
        weight: null,
        child: null,
        enable: null,
        sorting: null,
        ruleKey: null,
        rule: null,
        majorScore: null,
        majorWeightScore: null,
        majorLeader: null,
        majorLeaderPhone: null,
        accidentJudgeState: null,
        accidentJudgeContent: null,
        accidentJudgeIds: null,
        majorState: null,
        createBy: null,
        createByName: null,
        createAt: null,
        updateBy: null,
        updateByName: null,
        updateAt: null,
        remark: null,
        version: null,
        status: null,
        extra1: null,
        extra2: null,
        extra3: null,
        missingItem: null,
        majorInspectors: null,
        majorAccompanyingPersons: null,
        majorInspectionDate: null,
        majorInspectionLocation: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.majorResultId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加标准化考核专业评分";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const majorResultId = row.majorResultId || this.ids
      getInspectionMajorresult(majorResultId).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改标准化考核专业评分";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.majorResultId != null) {
            updateInspectionMajorresult(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addInspectionMajorresult(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const majorResultIds = row.majorResultId || this.ids;
      this.$modal.confirm('是否确认删除标准化考核专业评分编号为"' + majorResultIds + '"的数据项？').then(function() {
        return delInspectionMajorresult(majorResultIds);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('workSafetyStandardization/InspectionMajorresult/export', {
        ...this.queryParams
      }, `InspectionMajorresult_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
